package com.qdhh.enrollment.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qdhh.enrollment.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper extends BaseMapper<User> {

    @Select("select * from users where phone = #{phone} and status = 1 limit 1")
    User findActiveByPhone(String phone);
}


